import { degreeInfo, mmInfo, ParameterObjectType } from '@amcax/base';

// 公式形式的数值输入，一律统一为mm/deg
export const getUnitForExpression = (type: ParameterObjectType) => {
  if (type === ParameterObjectType.Length) {
    return mmInfo;
  }

  if (type === ParameterObjectType.Angle) {
    return degreeInfo;
  }

  return null;
};
